package com.tengfei.blogsystem.controller.admin;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-15-16:22
 * @description
 */

import com.tengfei.blogsystem.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * 评论api
 */
@RestController
@RequestMapping("/admin/comment")
public class CommentAdminApi {
    /**
     *获取评论列表
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/list/{page}/{size}")
    public ResponseResult listComment(@PathVariable("page") int page,@PathVariable("size") int size){

        return null;
    }

    /**
     *删除评论
     * @param commentId
     * @return
     */
    @DeleteMapping("/{commentId}")
    public ResponseResult deleteComment(@PathVariable("commentId") String commentId){

        return null;
    }

    /**
     *查找评论
     * @param commentId
     * @return
     */
    @GetMapping("/{commentId}")
    public ResponseResult getComment(@PathVariable("commentId") String commentId){

        return null;
    }

    /**
     *置顶评论
     * @param commentId
     * @return
     */
    @PutMapping("/top /{commentId}")
    public ResponseResult topComment(@PathVariable("commentId") String commentId){

        return null;
    }
}
